/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mx.itschapala.dsw2.biblioteca8a.DAO;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import mx.itschapala.dsw2.biblioteca8a.modelo.Categoria;

/**
 *
 * @author z
 */
@Stateless
public class CategoriaFacade extends AbstractDao<Categoria> implements CategoriaFacadeLocal {
    @PersistenceContext(unitName = "biblioteca8a-ejbPU")
    private EntityManager em;

    @Override
    protected EntityManager getEntityManager() {
        return em;
    }

    public CategoriaFacade() {
        super(Categoria.class);
    }
    
}
